﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Wix.Aura.Common {
	public class CreateFolder : IXmlSerializable {
		public CreateFolder(){
			Permission = new List<Permission>();
			PermissionEx = new List<PermissionEx>();
			Shortcut = new List<Shortcut>();
		}

		public string Directory { get; set; }
		public ICollection<Permission> Permission { get; private set;}
		public ICollection<PermissionEx> PermissionEx { get; private set; }
		public ICollection<Shortcut> Shortcut { get; private set; }

		public System.Xml.Schema.XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public void ReadXml(System.Xml.XmlReader reader) {
			throw new NotImplementedException();
		}

		public void WriteXml(System.Xml.XmlWriter writer) {
			writer.WriteStartElement("CreateFolder");
			writer.WriteAttribute("Directory", Directory);
			writer.WriteElements(Permission);
			writer.WriteElements(PermissionEx);
			writer.WriteElements(Shortcut);
			writer.WriteEndElement();
		}
	}
}
